{# A token just made (dialog body): its value, the one time it is shown. Done closes the dialog and lists the tokens again. #} {% from "components/macros/layout.html" import dialog_title, command %} {% from "components/macros/form.html" import primary_button %} {{ dialog_title("Token made", name ~ " reaches: " ~ scope) }}
{{ command(value) }}
{{ shown_once }}
{{ primary_button("Done", attrs=hx_replace(page, "#overseer-main") ~ (' @click="$el.closest(\'dialog\').close()"'|safe)) }}